
import time
import threading

def test1(temp):
    temp.append(33)
    print("...test1... %s " % str(temp))

def test2(temp):
    temp.append(55)
    print("....test1... %s " % str(temp))

g_nums = [12,34]

def main():
    t1 = threading.Thread(target=test1,args=(g_nums,))
    t2 = threading.Thread(target=test2,args=(g_nums,))

    t1.start()
    time.sleep(2)

    t2.start()

    print("...main... %s " % g_nums)

if __name__ == '__main__':
    main()

